package com.baizhi.service.impl;

import com.baizhi.config.log.LogAnnotation;
import com.baizhi.entity.RoleResource;
import com.baizhi.mapper.RoleResourceMapper;
import com.baizhi.service.RoleResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
public class RoleResourceServiceImpl implements RoleResourceService {
    @Autowired
    private RoleResourceMapper roleResourceMapper;
    @Transactional
    @LogAnnotation(content = "查询角色管理",type = "select")
    public List<RoleResource> selectAll() {
        List<RoleResource> roleResources = roleResourceMapper.selectAll();
        return roleResources;
    }
}
